package com.managertrade.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class OkxFillResponseDTO {
    private String code;
    private String msg;
    private List<FillData> data;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class FillData {
        private String instId;   // 合约ID
        private String ordId;    // 订单ID
        private String fillPx;   // 成交价格
        private String fillSz;   // 成交数量
        private String pnl;      // 已实现盈亏
        private String fee;      // 手续费
        private String ts;       // 成交时间戳
    }
}